package com.xxgc.ssm.controller;

import com.xxgc.ssm.pojo.Users;
import com.xxgc.ssm.pojo.info.Info;
import com.xxgc.ssm.service.IUserLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/user")
public class UserLoginController {
    @Autowired
    private IUserLoginService iUserLoginService;
    @RequestMapping("/test/{uname}/{upass}")
    @ResponseBody
    public Info test(@PathVariable("uname")String uName,
                     @PathVariable("upass")String uPass){

        return iUserLoginService.userLogin(uName,uPass);
    }
}
